using UnityEngine;
using System.Collections;

public class ButtonCancel : MonoBehaviour {
	public GameObject closeTargetWindow;
	
	void OnClick(){
		if(UIManagement.Instance().cancel != null) {
			UIManagement.Instance().cancel();
			UIManagement.Instance().cancel = null;
		}
		
		
		if(closeTargetWindow != null)
			UIManagement.Instance().CloseWindow(closeTargetWindow);
	}
}
